﻿package com.zouloux.core.events
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author ZoulouX
	 */
	public class NavigationEvent extends Event 
	{
		/**
		 * La structure du site est prête
		 */
		public static const STRUCTURE_READY			:String = "structureReady";
		
		/**
		 * L'url a changée
		 */
		public static const PAGE_CHANGE				:String = "pageChange";
		
		/**
		 * On entre sur une page
		 */
		public static const PAGE_IN					:String = "pageIn";
		
		/**
		 * On sort d'une page
		 */
		public static const PAGE_OUT				:String = "pageOut";
		
		
		
		/**
		 * Constructeur
		 * @param	type
		 * @param	bubbles
		 * @param	cancelable
		 */
		public function NavigationEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);	
		}
		
		// Trucs débiles
		public override function clone():Event 
		{ 
			return new NavigationEvent(type, bubbles, cancelable);
		} 
		public override function toString():String 
		{ 
			return formatToString("NavigationEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
	}
}